/*
 * Alipay.com Inc.
 * Copyright (c) 2004 - 2010 All Rights Reserved.
 * Powered By [rapid-generator]
 */

package com.pingan.mobilegw.common.dal.dataobject;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;

/**
 * MaGwCommonConfigDO
 * database table: MA_GW_COMMON_CONFIG
 * database table comments: 网关配置表
 * This file is generated by <tt>dalgen</tt>, a DAL (Data Access Layer)
 * 
 * PLEASE DO NOT MODIFY THIS FILE MANUALLY, or else your modification may
 * be OVERWRITTEN by someone else. To modify the file, you should go to 
 * directory <tt>(project-home)/dalgen</tt>
 * @author badqiu(zhongxuan)
 *
 
 */
public class MaGwCommonConfigDO implements java.io.Serializable {
    private static final long serialVersionUID = -5216457518046898601L;

    /**
     * id 		db_column: ID 
     */
    private int               id;
    /**
     * 配置参数值 		db_column: CONF_KEY 
     */
    private String            confKey;
    /**
     * 修改时间 		db_column: GMT_MODIFIED 
     */
    private Date              gmtModified;
    /**
     * confValue 		db_column: CONF_VALUE 
     */
    private String            confValue;
    /**
     * 备注 		db_column: MEMO 
     */
    private String            memo;
    /**
     * 创建时间 		db_column: GMT_CREATE 
     */
    private Date              gmtCreate;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return this.id;
    }

    public void setConfKey(String confKey) {
        this.confKey = confKey;
    }

    public String getConfKey() {
        return this.confKey;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() {
        return this.gmtModified;
    }

    public void setConfValue(String confValue) {
        this.confValue = confValue;
    }

    public String getConfValue() {
        return this.confValue;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getMemo() {
        return this.memo;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() {
        return this.gmtCreate;
    }

    public String toString() {
        return new ToStringBuilder(this).append("Id", getId()).append("ConfKey", getConfKey())
            .append("GmtModified", getGmtModified()).append("ConfValue", getConfValue())
            .append("Memo", getMemo()).append("GmtCreate", getGmtCreate()).toString();
    }

    public int hashCode() {
        return new HashCodeBuilder().append(getId()).toHashCode();
    }

    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        if (obj instanceof MaGwCommonConfigDO == false)
            return false;
        MaGwCommonConfigDO other = (MaGwCommonConfigDO) obj;
        return new EqualsBuilder().append(getId(), other.getId()).isEquals();
    }
}
